package cc.openhome;

import java.io.*;

/**
 * Created by LJY on 2017/3/29.
 */
public class CharUtil {
    public static void dump(Reader src,Writer dest)throws IOException {
        try(Reader input=src; Writer output=dest){
            char[] data=new char[1024];
            int length;
            while((length=input.read(data))!=-1){
                output.write(data,0,length);
            }
        }
    }
}
